import json
import requests

def get_question(url, question):
    s = question + "专业的大学生适合什么工作,请回答四个"
    # 注意message必须是奇数条
    payload = json.dumps({
        "messages": [
            {
                "role": "user",
                "content": s
            }
        ]
    })
    headers = {
        'Content-Type': 'application/json'
    }

    res = requests.request("POST",
                           url,
                           headers=headers,
                           data=payload).json()

    return res['result']
